var stopEvent = function (e) {
	e.stopPropagation();
	e.preventDefault()
	e.stopImmediatePropagation();
};

var Utils = (function () {
	
	this.executeWithDelay = function (params) {
		if (params.context.prevJob) {
			window.clearTimeout(params.context.prevJob);
		}
		
		params.context.prevJob = setTimeout(function () {
								    params.jobToExecute(params.params);	
							     }, params.timeout);
	}
	
	return {
		executeWithDelay:  executeWithDelay
	};
	
})();

function between(x, min, max) {
	return x >= min && x <= max;
}